package com.one.apartmentsystem.common.exception;

import com.one.apartmentsystem.common.utils.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author mpk
 * @since 2024/8/19 15:25:16
 */
//@RestControllerAdvice
public class GlobalExceptionHandler  {

    @ExceptionHandler(Exception.class)
    public Result errorByException(Exception ex){
        return  Result.error(500,"系统崩溃");
    }

}
